<%@ include file = "/common/ini.jsp"%> 
<%@ include file = "/common/_log4j.jsp"%>
<%@ include file = "/common/_ApplicationContext_init.jsp"%> 
<%@ include file = "/common/_currUser_Infor.jsp"%> 
<%@ include file = "/common/_vr.jsp"%> 
<%@ include file = "/js/_js_for_select.jsp"%> 
<%@ include file = "/js/_js_for_checkbox.jsp"%>   
<%
    TeachResourceManager teachResourceManager = (TeachResourceManager)applicationContext.getBean("teachResourceManager");
    String knowledgePointId = "%";
    if(request.getParameter("knowledgePointId") != null)
    {
        knowledgePointId = request.getParameter("knowledgePointId");
    }
    List trs = teachResourceManager.findTeachResourcesByKnowLedgePoint(knowledgePointId);
    logger.debug("查询教学资源清单" + trs.size());
%>
        
                <%
                if(trs.size() > 0)
                {
                    %>
                    <table>
                    <%
                        for(int i = 0; i < trs.size(); i ++)
                        {
                            TeachResource tr = (TeachResource)trs.get(i);
                            %>
                            <tr style="cursor:hand" onmouseover="this.style.background='#D9FFDE'" onmouseout="this.style.background='';" title="点击学习" onclick="learnIt('<%= tr.getId()%>')">
                                <td>
                                    <b><%= tr.getTitle()%></b>
                                </td>
                                <td>
                                    <%= tr.getPublishCompany().getName()%>
                                </td>
                                
                                <td>
                                    <%= tr.getAuthorName()%>
                                </td>
                            </tr>
                            <%
                        }//
                    %>
                    </table>
                    <%
                }
                %>
<script>
    showTrList();
</script>